package com.last.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author tom
 * @since 2021-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RoomInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "room_id",type = IdType.AUTO)
    private Integer roomId;

    /**
     * 房间名称
     */
    private String roomName;

    /**
     * 房间状态 1可预订 2 已预定
     */
    private Integer roomStatus;

    /**
     * 类型编号
     */
    private Integer typeId;

    /**
     * 房间图片
     */
    private String pic;

    /**
     * 房间价格
     */
    private BigDecimal price;

    /**
     * 房建描述
     */
    private String roomDescribe;

    /**
     * 具体地址
     */
    private String roomAderss;
    /**
     * 酒店Id
     */
    private Integer homeId;

    /**
     * 酒店信息
     */
    @TableField(exist = false)
    private HouseName houseName;

    /**
     * 商家信息
     */
    @TableField(exist = false)
    private Merchant merchant;
}
